<?php
//require_once("../src/facility_mod_get_facilityId.php");
//require_once("../src/facility_mod_getlocationbyfacilityId.php");
require_once(dirname(__FILE__)."/../src/facility_mod_get_facilityIdArray_by_landmarkid.php");
require_once(dirname(__FILE__)."/../src/facility_mod_get_facilityArray_by_landmarkid.php");
require_once(dirname(__FILE__)."/../src/facility_mod_create_one_facility.php");
require_once(dirname(__FILE__)."/../src/facility_mod_get_facilityinfo_by_facilityid.php");

if($_SERVER['REQUEST_METHOD'] == "POST")
{
	switch ($_POST['act'])
	{
		case 'create_one_facility':
			echo create_one_facility();
		    break;
		
		default:
			echo 'FALSE';
		    break;
	}


}
else if($_SERVER['REQUEST_METHOD'] == "GET")
{
    switch ($_GET['act'])
	{
//		case 'get_facilityId_by_ci_bu_dis'://serviceUrl name
			//To do;				           					
			//$logger = Logger::GetInstance();
			//$logger->Write($_GET['cityId']);
//		  echo get_facilityId_by_ci_bu_dis($_GET);
//		    break;      
		//case 'GetLocationByFacilityId':
		 // echo GetLocationByFacilityId($_GET);
		case 'get_facilityarray_by_landmarkid':		  		
			echo GetFacilityArrayByLandmark($_GET);
		break;			
		case 'get_facility':
             echo  GetFacilityById($_GET);
		break;
		case 'get_facilityIdArray':
		echo GetFacilityIdArrayByLandmark($_GET);
		break;
		default:
			echo  'FALSE';
			break;
	}
}
else
{
	echo 'FALSE';
}



?>